<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <td style="width: 1px;" class="text-center"><input type="checkbox"
                                                                   onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                </td>

                <td class="text-right">
                    <a href="javascript:sort('user_id');">ID</a>
                </td>
                <td class="text-left">
                    <a href="javascript:sort('username');">会员昵称</a>
                </td>


                <td class="text-left">
                    <a href="javascript:sort('mobile');">手机号码</a>
                </td>
                <td class="text-left">
                    <a href="javascript:sort('user_money');">余额</a>
                </td>
                <td class="text-left">
                    <a href="javascript:sort('pay_points');">积分</a>
                </td>
                <td class="text-left">
                    <a href="javascript:sort('reg_time');">注册日期</a>
                </td>
                <td class="text-right">操作</td>
            </tr>
            </thead>
            <tbody>
            <volist name="userList" id="list">
                <tr>
                    <td class="text-center">
                        <input type="checkbox" name="selected[]" value="{$list['user_id']}">
                        <input type="hidden" name="shipping_code[]" value="flat.flat">
                    </td>
                    <td class="text-right">{$list.user_id}</td>
                    <td class="text-left">{$list.nickname}</td>

                    <td class="text-left">{$list.mobile}

                    </td>
                    <td class="text-left">{$list.user_money}</td>
                    <td class="text-left">{$list.pay_points}</td>
                    <td class="text-left">{$list.reg_time|date='Y-m-d H:i',###}</td>
                    <td class="text-right">
                        <a href="{:U('Admin/user/detail',array('id'=>$list['user_id']))}" data-toggle="tooltip" title=""
                           class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>

                        <!--<a href="{:U('Admin/order/index',array('user_id'=>$list['user_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="订单查看"><i class="fa fa-shopping-cart"></i></a>-->
                        <a href="{:U('Admin/user/account_log',array('id'=>$list['user_id']))}" data-toggle="tooltip"
                           title="" class="btn btn-info" data-original-title="账户"><i
                                class="glyphicon glyphicon-yen"></i></a>
                        <a href="{:U('Admin/user/delete',array('id'=>$list['user_id']))}" id="button-delete6"
                           data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i
                                class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left">
    </div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var page = $(this).data('p');
        ajax_get_table('search-form2', page);
    });
</script>